package com.lagou.dao;

import com.lagou.pojo.User;

import java.util.List;

public interface IUserDao {
    /**
     * 查询所有
     * @return
     */
    List<User> findAll() throws Exception;

    /**
     * 根据条件查询
     * @return
     */
    User finByCondition(User user) throws Exception;

    /**
     * 填加用户
     * @param user
     * @return
     * @throws Exception
     */
    int add(User user) throws Exception;

    /**
     * 根据条件更新
     * @param user
     * @return
     * @throws Exception
     */
    int updateByCondition(User user) throws Exception;

    /**
     * 根据条件删除
     * @param user
     * @return
     * @throws Exception
     */
    int deleteByCondition(User user) throws Exception;



}
